package com.atguigu.gmall.user.service;

import com.atguigu.gmall.model.user.UserInfo;
import com.fasterxml.jackson.core.JsonProcessingException;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface UserServcie {

    /**
     * 用户登录
     * @param userInfo
     * @param request
     * @return
     */
    Map<String, String> login(UserInfo userInfo, HttpServletRequest request) throws JsonProcessingException;

    /**
     * 用户退出
     * @param token
     */
    void logout(String token);
}
